
class MenuItem(object):
    indx = 0
    
    def __init__(self, bind_method, description='', index = None):
        if index is not None:
            MenuItem.indx = index
            
        self.index = MenuItem.indx
        MenuItem.indx += 1
        self.name = bind_method.__name__
        self.desc = description
        self.bind_method = bind_method
        
        
        
    def __str__(self):
        return str(self.index) + '- ' + self.desc

